﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace Arch.Samples.RiaServices.ServicesReferences
{
    public class ServiceOptions
    {
        public static ServiceOptions Default
        {
            get { return new ServiceOptions { ExecuteOnError = false, ManageError = true }; }
        }

        public static ServiceOptions Manual
        {
            get { return new ServiceOptions { ExecuteOnError = true, ManageError = false }; }
        }

        public static ServiceOptions Full
        {
            get { return new ServiceOptions { ExecuteOnError = true, ManageError = true }; }
        }


        public bool ManageError { get; set; }
        public bool ExecuteOnError { get; set; }
    }
}
